getObjectSet

abstract override fun getObjectSet(propertyName: String): RealmSet<DynamicMutableRealmObject>

Returns the set of objects referenced by the property name as a RealmSet.

The class argument must be the KClass of the RealmStorageType for the property.

To retrieve values, objects or set of value elements use the get<X>Value, getObject and other get<X>Set variants.

Return

the referenced RealmSet

Parameters

propertyName

the name of the set property to retrieve the set for.

Throws

if the class doesn't contain a field with the specific name, if trying to retrieve values for non-set properties or if clazz doesn't match the property's RealmStorageType.kClass.